Username$<%=username%>
Password:$<%=password%>
<%=prompt%>$en
#|Password$<%=ManagementPassword%>
#$configure terminal
#$pon
#$onu-profile gpon line <%=lineProfileName%>
<% let index = 1;-%>
<% for(let i=0;index<7&&index>0&&i<arr.length;i++){ -%>
<% let item = arr[i]-%>
#$tcont <%=index%> profile <%=item.dbaProfile%>
#$gemport <%=index%> unicast  tcont <%=index%>
<% if(item.isSpeedLimit){ -%>
#$gemport <%=index%> traffic-limit upstream <%=item.UplinkSpeed%> downstream <%=item.DownSpeed%>
<%}-%>
<% index++;-%>
<%} -%>
#$exit
#$exit
#$exit
#$write
OK$configure terminal
#$pon
#$onu-profile gpon remote <%=lineProfileName%>
<% let NO = 1;-%>
<% for(let i=0;NO<7&&NO>0&&i<arr.length;i++){ -%>
<% let item = arr[i]-%>
#$service <%=item.bName%> gemport <%=NO%> vlan <%=item.gVLAN%>
<% NO++;-%>
<%} -%>
#$switchport-bind switch_0/1 veip 1
#$exit
#$exit
#$exit
#$write
OK$exit